infobar: Remove unneeded checks
authorBenjamin Otte <otte@redhat.com>
Wed, 30 Apr 2014 07:16:04 +0000 (09:16 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 1 May 2014 12:51:28 +0000 (14:51 +0200)
Size vfuncs always get non-null out variables passed, so no need to
check for NULL.

gtk/gtkinfobar.c

index 804776d80b74b8b64948980ca94d1a86c933dfbd..35d28959b047756d0e69be095619e0ab1d7f491c 100644 (file)
@@ -337,10 +337,8 @@ gtk_info_bar_get_preferred_width (GtkWidget *widget,
                                                                      minimum_width,
                                                                      natural_width);
 
-  if (minimum_width)
-    *minimum_width += border.left + border.right;
-  if (natural_width)
-    *natural_width += border.left + border.right;
+  *minimum_width += border.left + border.right;
+  *natural_width += border.left + border.right;
 }
 
 static void
@@ -356,10 +354,8 @@ gtk_info_bar_get_preferred_height (GtkWidget *widget,
                                                                       minimum_height,
                                                                       natural_height);
 
-  if (minimum_height)
-    *minimum_height += border.top + border.bottom;
-  if (natural_height)
-    *natural_height += border.top + border.bottom;
+  *minimum_height += border.top + border.bottom;
+  *natural_height += border.top + border.bottom;
 }
 
 static gboolean